{smcl}
{com}{sf}{ul off}{txt}{.-}
      name:  {res}<unnamed>
       {txt}log:  {res}/Users/lvavreck/Dropbox/Vegas/AGLV/Nonresponse paper June 2013/PSRM/Dataverse Files/GoochVavreck_DescriptiveStats.smcl
  {txt}log type:  {res}smcl
 {txt}opened on:  {res}19 Apr 2016, 10:45:25

{com}. log off
      {txt}name:  {res}<unnamed>
       {txt}log:  {res}/Users/lvavreck/Dropbox/Vegas/AGLV/Nonresponse paper June 2013/PSRM/Dataverse Files/GoochVavreck_DescriptiveStats.smcl
  {txt}log type:  {res}smcl
 {txt}paused on:  {res}19 Apr 2016, 10:45:44
{txt}{.-}
{smcl}
{txt}{sf}{ul off}{smcl}
{com}{sf}{ul off}{txt}{.-}
      name:  {res}<unnamed>
       {txt}log:  {res}/Users/lvavreck/Dropbox/Vegas/AGLV/Nonresponse paper June 2013/PSRM/Dataverse Files/GoochVavreck_DescriptiveStats.smcl
  {txt}log type:  {res}smcl
{txt}resumed on:  {res}19 Apr 2016, 10:47:44

{com}. do "/var/folders/g8/nngx14pj4jq3jxbjcb8bcgfm0000gn/T//SD03763.000000"
{txt}
{com}. 
. 
. ***  CREATE VARS for the DESCRIPTIVE STATS TABLES
. capture drop *NM
{txt}
{com}. foreach i in ideo {c -(}
{txt}  2{com}.         foreach k in bo mr jh "" {c -(}
{txt}  3{com}.                         gen `i'`k'NM = `i'`k'
{txt}  4{com}.                         replace `i'`k'NM = . if `i'`k' >= 9
{txt}  5{com}.                         {c )-}
{txt}  6{com}.                 {c )-}
{txt}(130 real changes made, 130 to missing)
(440 real changes made, 440 to missing)
(788 real changes made, 788 to missing)
(81 real changes made, 81 to missing)

{com}. 
. ** CREATE DK indicators for favorability
. foreach j in favor {c -(} 
{txt}  2{com}.         foreach z in mormon muslim tea {c -(}
{txt}  3{com}.                         gen `j'`z'NM = `j'`z'
{txt}  4{com}.                         replace `j'`z'NM = . if `j'`z' >= 9
{txt}  5{com}.         {c )-}
{txt}  6{com}. {c )-}                       
{txt}(152 real changes made, 152 to missing)
(106 real changes made, 106 to missing)
(229 real changes made, 229 to missing)

{com}.                 
. foreach v in favor {c -(}
{txt}  2{com}.                 foreach k in bo mr jh {c -(}
{txt}  3{com}.                         gen `v'`k'NM = `v'`k'
{txt}  4{com}.                         replace `v'`k'NM = . if `v'`k' >= 9
{txt}  5{com}.                 {c )-}
{txt}  6{com}.         {c )-}       
{txt}(18 real changes made, 18 to missing)
(324 real changes made, 324 to missing)
(682 real changes made, 682 to missing)

{com}. ** CREATE DK indicators for matchups
. 
. foreach m in match {c -(}
{txt}  2{com}.                 foreach k in _mr _jh {c -(}
{txt}  3{com}.                         gen `m'`k'NM = `m'`k'
{txt}  4{com}.                         replace `m'`k'NM = . if `m'`k' >=3
{txt}  5{com}.                 {c )-}
{txt}  6{com}.         {c )-}       
{txt}(271 real changes made, 271 to missing)
(382 real changes made, 382 to missing)

{com}.         
. ** CREATE DK indicators for everything else
. #delimit ;
{txt}delimiter now ;
{com}. foreach i in abort register gym taxes health gaymar defense pluto turnout08 
>         choice08 newsp dentist techinternetfreq smoker drink churatd
>         moby meds wsum1 wsum2 wsum4 wsum5 
>         immi partyid retro income educ race trust interest bible teaparty
>         rr_1 rr_2 rr_3 rr_4 {c -(} ;
{txt}  2{com}.           set more off;
{txt}  3{com}.                 gen `i'NM = `i';
{txt}  4{com}.                 replace `i'NM = . if `i' >=8;
{txt}  5{com}.                 {c )-};
{txt}(19 real changes made, 19 to missing)
(6 real changes made, 6 to missing)
(2 real changes made, 2 to missing)
(156 real changes made, 156 to missing)
(26 real changes made, 26 to missing)
(39 real changes made, 39 to missing)
(87 real changes made, 87 to missing)
(6 real changes made, 6 to missing)
(9 real changes made, 9 to missing)
(278 real changes made, 278 to missing)
(3 real changes made, 3 to missing)
(3 real changes made, 3 to missing)
(5 real changes made, 5 to missing)
(1 real change made, 1 to missing)
(1 real change made, 1 to missing)
(16 real changes made, 16 to missing)
(106 real changes made, 106 to missing)
(5 real changes made, 5 to missing)
(5 real changes made, 5 to missing)
(20 real changes made, 20 to missing)
(28 real changes made, 28 to missing)
(52 real changes made, 52 to missing)
(105 real changes made, 105 to missing)
(9 real changes made, 9 to missing)
(29 real changes made, 29 to missing)
(766 real changes made, 766 to missing)
(7 real changes made, 7 to missing)
(8 real changes made, 8 to missing)
(21 real changes made, 21 to missing)
(7 real changes made, 7 to missing)
(13 real changes made, 13 to missing)
(65 real changes made, 65 to missing)
(8 real changes made, 8 to missing)
(13 real changes made, 13 to missing)
(8 real changes made, 8 to missing)
(13 real changes made, 13 to missing)

{com}. #delimit cr
{txt}delimiter now cr
{com}. foreach i in vp roberts prime {c -(}
{txt}  2{com}.         gen `i'codeNM = `i'code
{txt}  3{com}.         replace `i'codeNM = . if `i'code == 0
{txt}  4{com}.         {c )-}
{txt}(399 real changes made, 399 to missing)
(845 real changes made, 845 to missing)
(794 real changes made, 794 to missing)

{com}. 
. foreach i in bible pluto churatd  turnout08 drink {c -(}
{txt}  2{com}.         replace `i'NM = . if `i' == 5
{txt}  3{com}.         {c )-}
{txt}(352 real changes made, 352 to missing)
(188 real changes made, 188 to missing)
(15 real changes made, 15 to missing)
(15 real changes made, 15 to missing)
(5 real changes made, 5 to missing)

{com}.         
. foreach i in meds register {c -(}
{txt}  2{com}.         replace `i'NM = . if `i' == 3
{txt}  3{com}.         {c )-}
{txt}(73 real changes made, 73 to missing)
(42 real changes made, 42 to missing)

{com}.         
. replace choice08NM = . if choice08NM == 4
{txt}(6 real changes made, 6 to missing)

{com}.         
. ***** CREATE TABLE OF DESCRIPTIVE STATISTICS
. 
. sum *NM, separator(0)   

{txt}    Variable {c |}       Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 56}
{space 4}ideoboNM {c |}{res}       880    2.223864    .9389189          1          5
{txt}{space 4}ideomrNM {c |}{res}       570    3.798246    .8169968          1          5
{txt}{space 4}ideojhNM {c |}{res}       222    3.522523     .833103          1          5
{txt}{space 6}ideoNM {c |}{res}       929     2.93972    .9829496          1          5
{txt}favormormo~M {c |}{res}       858    2.875291    .9427338          1          5
{txt}favormusli~M {c |}{res}       904    2.786504    .9814421          1          5
{txt}{space 2}favorteaNM {c |}{res}       781    2.622279    1.349061          1          5
{txt}{space 3}favorboNM {c |}{res}       992    3.236895    1.463077          1          5
{txt}{space 3}favormrNM {c |}{res}       686    2.774052    1.123068          1          5
{txt}{space 3}favorjhNM {c |}{res}       328    2.801829     .938668          1          5
{txt}{space 2}match_mrNM {c |}{res}       739    1.355886    .4791053          1          2
{txt}{space 2}match_jhNM {c |}{res}       628    1.269108    .4438499          1          2
{txt}{space 5}abortNM {c |}{res}       991    2.202825    .9930222          1          4
{txt}{space 2}registerNM {c |}{res}       962    1.118503     .323371          1          2
{txt}{space 7}gymNM {c |}{res}      1008    2.175595    .9702218          1          5
{txt}{space 5}taxesNM {c |}{res}       854    2.749415    1.033084          1          4
{txt}{space 4}healthNM {c |}{res}       984    2.123984    .8086976          1          3
{txt}{space 4}gaymarNM {c |}{res}       971    2.215242    1.062003          1          4
{txt}{space 3}defenseNM {c |}{res}       923    3.641387    1.512887          1          7
{txt}{space 5}plutoNM {c |}{res}       816    2.938725    .4187863          1          4
{txt}{space 1}turnout08NM {c |}{res}       986    3.340771    1.181714          1          4
{txt}{space 2}choice08NM {c |}{res}       726    1.413223    .5657257          1          3
{txt}{space 5}newspNM {c |}{res}      1007     2.34856     2.39089          0          7
{txt}{space 3}dentistNM {c |}{res}      1007    1.298908    .4580067          1          2
{txt}techintern~M {c |}{res}      1005    1.275622    .7215057          1          5
{txt}{space 4}smokerNM {c |}{res}      1009    1.776016    .4171183          1          2
{txt}{space 5}drinkNM {c |}{res}      1004    1.838645    .8588641          1          4
{txt}{space 3}churatdNM {c |}{res}       979    2.729316    1.245552          1          4
{txt}{space 6}mobyNM {c |}{res}       904    2.440265    .9786052          1          4
{txt}{space 6}medsNM {c |}{res}       932    1.711373    .4533672          1          2
{txt}{space 5}wsum1NM {c |}{res}      1005    3.849751    .5246061          1          5
{txt}{space 5}wsum2NM {c |}{res}       990    4.849495    .6364197          1          5
{txt}{space 5}wsum4NM {c |}{res}       982    1.875764    1.057396          1          5
{txt}{space 5}wsum5NM {c |}{res}       958    3.177453    1.477039          1          5
{txt}{space 6}immiNM {c |}{res}       905    1.641989    .4796805          1          2
{txt}{space 3}partyidNM {c |}{res}      1001    2.240759    .9126757          1          4
{txt}{space 5}retroNM {c |}{res}       981     2.66055    .7706102          2          4
{txt}{space 4}incomeNM {c |}{res}       244    4.581967    2.062162          1          7
{txt}{space 6}educNM {c |}{res}      1003    4.196411    1.418549          1          6
{txt}{space 6}raceNM {c |}{res}      1002    1.987026    1.502855          1          7
{txt}{space 5}trustNM {c |}{res}       989    2.878665    .5791938          1          4
{txt}{space 2}interestNM {c |}{res}      1003    1.963111    .9401422          1          4
{txt}{space 5}bibleNM {c |}{res}       645    2.427907    1.219598          1          4
{txt}{space 2}teapartyNM {c |}{res}       945    1.805291    .3961862          1          2
{txt}{space 6}rr_1NM {c |}{res}      1002    2.888224    1.374624          1          5
{txt}{space 6}rr_2NM {c |}{res}       997    3.647944    1.220404          1          5
{txt}{space 6}rr_3NM {c |}{res}      1002    2.583832    1.236095          1          5
{txt}{space 6}rr_4NM {c |}{res}       997    2.919759    1.371534          1          5
{txt}{space 4}vpcodeNM {c |}{res}       611    1.909984    .2864397          1          2
{txt}robertscod~M {c |}{res}       165    1.121212    .3273672          1          2
{txt}{space 1}primecodeNM {c |}{res}       216    1.342593    .4756789          1          2
{txt}
{com}. 
{txt}end of do-file

{com}. log close
      {txt}name:  {res}<unnamed>
       {txt}log:  {res}/Users/lvavreck/Dropbox/Vegas/AGLV/Nonresponse paper June 2013/PSRM/Dataverse Files/GoochVavreck_DescriptiveStats.smcl
  {txt}log type:  {res}smcl
 {txt}closed on:  {res}19 Apr 2016, 10:47:56
{txt}{.-}
{smcl}
{txt}{sf}{ul off}